﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Pragma" content="no-cache"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>WebNoteEditor</title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
<link rel="stylesheet" type="text/css" id="SkinStyleSheet" />
<style type="text/css">
/* select style */
body{
	background:white;
}
#divloader{
	text-align:center;vertical-align:middle;margin:auto;height:1000px
}
#divinfo{
	width:360px;height:300px;text-align:left;margin:auto;position:absolute;
}
#loadstatus{
	text-align:center;font-size:8pt
}
#divloadprogress
{
	border-top:1px silver solid;border-left:1px silver solid;border-right:1px #f7f7f7 solid;border-bottom:1px #f7f7f7 solid;width:100%
}
#divloadpercent
{
	background-image:url('images/loadingprogress.gif');height:16px;
}
#divtips{
	background-color:#ffffee;border:1px gray dotted;padding: 3px
}
#btnTipsClose{
	cursor:pointer;position:absolute;top:0px;right:5px;width:16px;height:16px;background-image:url('images/tipsclose.gif');background-repeat:no-repeat
}
</style>
<script language="javascript" type="text/javascript" src="script/xdialog.js"></script>
<script language="javascript" type="text/javascript" src="script/ajax-min.js"></script>
<script language="javascript" type="text/javascript" id="scriptlanguage"></script>

<script language="javascript" type="text/javascript">
var eVersion="20120311";
var sTime=new Date().getTime();
function __setloadstatus(sText,sPercent)
{
	var eTime=new Date().getTime();
	document.getElementById("loadstatus").textContent=document.getElementById("loadstatus").innerText=sText+" ("+(eTime-sTime)+"ms)" + " " + sPercent;
	document.getElementById("divloadpercent").style.width=document.getElementById("divloadprogress").clientWidth*(parseInt(sPercent)/100)+"px";
}

//*************
var WebNoteSkinResourcePath,WebNoteEditorMenuBar,WebNoteEditorToolBar,WebNoteEditorCssFiles,WebNoteEditorLanguage;
var WebNoteEditorMode,WebNoteEditorbindsubmitevent;
var WebNoteEditorFullHTML;

WebNoteEditorID=getUrlArgment("id")
WebNoteEditorMenuBar=getUrlArgment("menubar");

WebNoteEditorToolBar=getUrlArgment("toolbar");
WebNoteEditorCssFiles=getUrlArgment("cssfiles");
WebNoteEditorLanguage=getUrlArgment("language");
WebNoteEditorMode=getUrlArgment("mode");
WebNoteEditorW3C=getUrlArgment("w3c");
WebNoteXHTMLSupported=getUrlArgment("xhtmlsupported");
WebNoteCanPageSplit=getUrlArgment("canpagesplit");
WebNoteSkin=getUrlArgment("skin");
WebNoteEditorBindsubmitevent=getUrlArgment("bindsubmitevent");
WebNoteEditorFullHTML=getUrlArgment("fullhtmlmode");

/**************参数配置处理**************/
//是否显示主菜单项目


if (WebNoteEditorMenuBar=="1" || WebNoteEditorMenuBar.toLowerCase()=="true")
	WebNoteEditorMenuBar=true;
else
	WebNoteEditorMenuBar=false;

//是否启用分页功能
if (WebNoteCanPageSplit=="1" || WebNoteCanPageSplit.toLowerCase()=="true")
{
	WebNoteCanPageSplit=true;
}
else
{
	WebNoteCanPageSplit=false;
}

if (WebNoteXHTMLSupported=="1" || WebNoteXHTMLSupported.toLowerCase()=="true")
	WebNoteXHTMLSupported=true;
else
	WebNoteXHTMLSupported=false;
	
if (WebNoteEditorBindsubmitevent=="1" || WebNoteEditorBindsubmitevent.toLowerCase()=="true")
	WebNoteEditorBindsubmitevent=true;
else
	WebNoteEditorBindsubmitevent=false;

if (WebNoteEditorFullHTML=="1" || WebNoteEditorFullHTML.toLowerCase()=="true")
	WebNoteEditorFullHTML=true;
else
	WebNoteEditorFullHTML=false;

/**************参数配置处理**************/

function getUrlArgment(sArgName,thisdocument)
{
	var sURL;

	if (thisdocument)
		sURL=thisdocument.location.toString();
	else
		sURL=location.toString()

	var tempStr,urlargment;
	sArgName=sArgName.toLowerCase();

	if (sURL.split("?").length==1)
		return "";

	urlargment=sURL.split("?")[1];
	tempStr=urlargment.split("&");
	for(i=0;i<tempStr.length;i++)
	{
		if (tempStr[i].toString().indexOf(sArgName+"=")==0)
			return tempStr[i].split("=")[1];
	}
	return "";
}

//加载语言

if(navigator.userAgent.toLowerCase().indexOf("chrome")>0 || navigator.userAgent.toLowerCase().indexOf("firefox")>0)
{
	$ajax.loadjs("script/"+WebNoteEditorLanguage+".js");
}
else
{
	document.getElementById("scriptlanguage").src="script/"+WebNoteEditorLanguage+".js";
}

if (WebNoteSkin!="")
{
	if (WebNoteSkin=="_default")
		WebNoteSkin="default";
}
else
{
	WebNoteSkin="default";
}
WebNoteSkinResourcePath="skins/"+WebNoteSkin+"/";

//加载皮肤
document.getElementById("SkinStyleSheet").href=WebNoteSkinResourcePath+"editor.css";

//
function __btnTipsClose_onclick()
{
	document.getElementById("divtips").style.display="none";
	resizeto(window.frameElement.scrollHeight);
}
</script>
</head>

<body>
<div id="divloader">
	<div id="divinfo">
		<img src="images/webnotelogo.gif" alt=""/>
		<div id="divloadprogress"><div id="divloadpercent" style="width:0px"></div></div>
		<p id="loadstatus"></p>
	</div>
</div>

<script language="javascript" type="text/javascript" src="script/config-min.js"></script>

<script language="javascript" type="text/javascript">
	__setloadstatus(lang_loading,"10%");
	document.getElementById("divinfo").style.left=(window.frameElement.scrollWidth-document.getElementById("divinfo").clientWidth)/2+"px";
	document.getElementById("divinfo").style.top=(window.frameElement.scrollHeight-document.getElementById("divinfo").clientHeight)/2+"px";
</script>
<script language="javascript" type="text/javascript" src="script/ie2w3c-min.js"></script>

<script language="javascript" type="text/javascript">
	__setloadstatus(lang_loading,"20%");
</script>
<script language="javascript" type="text/javascript" src="script/UIselect-min.js"></script>
<script language="javascript" type="text/javascript">
	__setloadstatus(lang_loading,"30%");
</script>
<script language="javascript" type="text/javascript" src="script/history-min.js"></script>
<script language="javascript" type="text/javascript">
	__setloadstatus(lang_loading,"40%");
</script>
<script language="javascript" type="text/javascript" src="script/popupmenu-min.js"></script>
<script language="javascript" type="text/javascript">
	__setloadstatus(lang_loading,"50%");
</script>
<script language="javascript" type="text/javascript" src="script/xhtml-min.js"></script>
<script language="javascript" type="text/javascript" id="basescript"></script>
<script language="javascript" type="text/javascript">
	__setloadstatus(lang_loading,"60%");

	var __rndcode="$rndcode";
	if(navigator.userAgent.toLowerCase().indexOf("chrome")>0 || navigator.userAgent.toLowerCase().indexOf("firefox")>0 || navigator.userAgent.toLowerCase().indexOf("maxthon")>0)
	{
		$ajax.loadjs("script/webnoteeditor-min.js");
	}
	else
	{
		document.getElementById("basescript").src="script/webnoteeditor-min.js?"+eVersion;	
	}
</script>

<script language="javascript" type="text/javascript">
	__setloadstatus(lang_loading,"80%");
</script>


<div id="divtips" style="display:none;">
	<div id="btnTipsClose" onclick="javascript:__btnTipsClose_onclick();"></div>
	<div class="alerttext" style="width:96%">
    	<script language="javascript" type="text/javascript">document.write(lang_setup_activex_tips_10);</script>
    	<div style="text-align:center"><img alt src="images/save.gif" style="margin-bottom:-3px"/>
    	<a href="activex/Setup_Activex_PowerUpLoad.rar" target="_self" style="color:blue" onclick=""><script language="javascript" type="text/javascript">document.write(lang_download);</script></a></div>
    </div>
</div>

<!--webnoteeditor-->
<div id="diveditor" style="display:">
	<script language="javascript" type="text/javascript">
		__setloadstatus(lang_loading_menu,"82%");
		if (WebNoteEditorMenuBar && $browser.isIE)
			__buildMainMenu();
		__setloadstatus(lang_loading_menu,"85%");
	</script>
	

	<div id="toolbar">
		<script language="javascript" type="text/javascript">
			__setloadstatus(lang_loading_toolbar,"90%");
			$toolbar.load();
			__setloadstatus(lang_loading_toolbar,"95%");
		</script>
	</div>
	<div id="divBody">
		<div id="divMode0"><iframe id="EditContent" frameborder="0"></iframe></div>
		<div id="divMode1" style="display:none"><textarea id="EditCode" style=""></textarea></div>
		<div id="divMode2" style="display:none"><iframe id="ViewContent" frameborder="0"></iframe></div>
	</div>
	<div id="EditorBottom">
		<div style="clear:both;width:100%">
			<div style="float:left;width:300px">
				<button onclick="javascript:changeMode(0,event);" id="Btn_Mode_Edit" class="BtnMode"><script language="javascript">document.write(language_mode_edit);</script></button>
				<button onclick="javascript:changeMode(1,event);" id="Btn_Mode_Code" class="BtnMode"><script language="javascript">document.write(language_mode_code);</script></button>
				<button onclick="javascript:changeMode(2,event);" id="Btn_Mode_View" class="BtnMode"><script language="javascript">document.write(language_mode_view);</script></button>
			</div>
			<div style="float:right;width:180px;text-align:right">
				<button id="btnFullScreen" class="BtnMode" onclick="javascript:__fullscreen();"><script language="javascript">document.write(lang_fullscreen);</script></button>
				<button id="btnReSizeAdd" onclick="javascript:__resize(1,event)">&nbsp;</button>
				<button id="btnReSizeDec" onclick="javascript:__resize(-1,event)">&nbsp;</button>
			</div>
		</div>
		<div id="divcssEditor" style="clear:both;width:100%"></div>
	</div>
</div>
<div id="divposting" style="display:;text-align:center;position:relative">
	<div id="divposting_2" style="position:absolute;width:500px;height:300px">
	<p style="text-align:center"><img src="images/webnotelogo.gif" alt=""/></p>
	<p style="text-align:center"><img src="images/loading.gif" alt=""/></p>
	<p style="text-align:center"><script language="javascript">document.write(lang_posting);</script></p>
	<div id="divPowerUpload"></div>
	</div>
</div>

<iframe id="divClipboard" style="height:0px"></iframe>
<div id="divClipboard2" style="height:0px"></div>
<script language="javascript">
	__setloadstatus(lang_loading_finished,"100%");
	
	document.getElementById("divposting_2").style.left=(window.frameElement.scrollWidth-document.getElementById("divposting_2").clientWidth)/2+"px";
	document.getElementById("divposting_2").style.top=(window.frameElement.scrollHeight-document.getElementById("divposting_2").clientHeight)/2+"px";
</script>
</body>

</html>